home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFBIND / VSPALETT.S < prev    next >
Text File  |  1993-03-16  |  964b  |  34 lines

  1. ;*========================================================================
  2. ;* VDIFAST Public Domain VDI bindings.
  3. ;*========================================================================
  4.  
  5.  
  6. ;*-----------------------------------------------------------------------
  7. ;* Select pallete.    This has something to do with IBMPC screens...
  8. ;*-----------------------------------------------------------------------
  9.  
  10.           globl     _vs_palette
  11. _vs_palette:
  12. ;    .cargs    #8,handle.w,palette.w
  13.  
  14. handle      =         8
  15. palette   =         10
  16.  
  17.           link        a6,#0
  18. ;          VContrl    #5,#60,,#1
  19.           move.w    handle(a6),-(sp)    ; contrl[6]
  20.           move.w    #60,-(sp)            ; contrl[5]
  21.           subq.l    #2,sp                ; contrl[4]
  22.           move.w    #1,-(sp)            ; contrl[3]
  23.           subq.l    #2,sp                ; contrl[2]
  24.           clr.w     -(sp)                ; contrl[1]
  25.           move.w    #5,-(sp)            ; contrl[0]
  26.  
  27.           lea        -12(sp),sp            ;* -> ptsout, intout, ptsin
  28.           pea        palette(a6)         ;* -> intin
  29.           pea        16(sp)                ;* -> contrl
  30.  
  31.           jmp        vdicall
  32.  
  33.           end
  34.